// ES6 新增字符串方法

// let name= 'Frank'

// console.log(name.indexOf('F'));//0
// console.log(name.indexOf('a'));//2
// console.log(name.indexOf('m'));// -1  not found 






let hobby = 'table tennis';


// exp1. includes
// console.log(hobby.includes('n')); // true 
// console.log(hobby.includes('T')); // false 



// startsWith
// console.log(hobby.startsWith('table'));// true 
// console.log(hobby.startsWith('tab'));// true 
// console.log(hobby.startsWith('tap'));  // false 


// hobby.endsWith()
// console.log(hobby.endsWith('s'));// true 


// repeat 
// let address = 'ShangHai Come on!   ';

// console.log(address.repeat(2));




// let hobby = 1111;

// let hobby = 222;


let name = 1111;
let name = 2222;/
